 #{set title:'Idea' /}


<p> ${idea.title} </p>
<p> Rating: ${idea.title} </p>



<form action="@{Ideas.merge}" method="post">


	<input type="submit" value="Merge"
		onclick="window.open('@{Ideas.merge(id,belonger,var)}','Popup','toolbar=no,location=no,status=yes,menubar=no,scrollbars=no,resizable=no,width=620,height=400,left=230,top=23'); return false;">
</form>

<br>
<FORM NAME="addingTag" ACTION="@{Ttags.tagMyIdeas()}" METHOD="post">
	Add a Tag :- <INPUT TYPE="text" NAME="tag" id="tag">
	<P>
		<input type="hidden" name="taggedIdeaId" id="taggedIdeaId" value=${idea.id}>
		<INPUT TYPE="submit" NAME="Add Tag" Value="Add Tag">
</FORM>
<br>
<FORM NAME="CreatingTag" ACTION="@{Ttags.createTagForIdea()}" METHOD="post">
	create a Tag :- <INPUT TYPE="text" NAME="name" >
	
		 <input
			type="hidden" name="newlyTaggedIdeaId" id="newlyTaggedIdeaId"
			value=${idea.id}> <INPUT TYPE="submit" NAME="create Tag"
			Value="create Tag">

</FORM>

<form action="@{Ratings.addRating()}" method = "GET">

Rating: <select name="rating" id="rating">

	<option value = "Low">Low</option>
	<option value = "Medium">Medium</option>
	<option value = "High">High</option>
	 </select>


<a href="@{Ideas.viewIdea(idea.id)}"><input type="submit" value="Submit Comment" /></a>


<input type = "hidden" id = "type" name = "type" value ="Idea">
<input type = "hidden" id = "modelID" name = "modelID" value ="${idea.id}">
<input type = "hidden" id = "username" name = "username" value ="${Security.connected()}">

</form>



<form action="@{Comments.addComment()}" >

<label> Comment: </label>

<br />
<textarea rows="2" cols="60" name="content" id="content">
</textarea>
<br />

<a href="@{Ideas.viewIdea(idea.id)}"><input type="submit" value="Submit Comment" /></a>

<input type = "hidden" id = "type" name = "type" value ="Idea">
<input type = "hidden" id = "modelID" name = "modelID" value ="${idea.id}">
<input type = "hidden" id = "username" name = "username" value ="${Security.connected()}">


</form>



<form action ="@{Ideas.promoteToExecution()}" method="post">
<input type="hidden"  id ="ideaID" name ="ideaID" value=${id}>
<input type="submit" value="Promote" >
</form>


<form NAME="SpammingIdea" ACTION="@{Ideas.toSpamIdea()}" METHOD="post">
<input type = "hidden" name ="id" id = "id" value =${idea.id}>
<input type = "submit" name ="Spam" value = "Spam">
</form>
